import random

from director import graph

query = "给我讲一个郭德纲的笑话"

config = {
    "configurable": {
        "thread_id": random.randint(1, 10000)
    }
}

res = graph.invoke(
    {"messages": [query]},
    config=config,
    stream_mode="values"
)
print(res["messages"][-1].content)
